package at.fhooe.stefanirndorfer.walls;

public class WallCollider {

	
	int height;
	int width;
	double posX;
	double posY;
	
	
	public WallCollider(Wall wall) {
		height = wall.getHeight();
		width = wall.getWidth();
		posX = wall.getPosX();
		posY = wall.getPosY();
	}

	public boolean hasCollision(double x, double y){
		return ((x >= posX && x <= posX + width) && (y >= posY && y <= posY + height));
	}
}
